* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#gameContainer {
    position: relative;
    background: #34495e;
    border: 3px solid #1a252f;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#gameCanvas {
    display: block;
    background: #2c5530;
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#scoreBoard {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 10;
}

.menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    pointer-events: auto;
    z-index: 100;
}

.menu h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #e74c3c;
}

.menu h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #3498db;
}

.menu button {
    display: block;
    width: 200px;
    margin: 10px auto;
    padding: 15px;
    font-size: 18px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.menu button:hover {
    background: #2980b9;
}

.menu p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

#gameOver {
    background: rgba(231, 76, 60, 0.9);
}

#helpMenu {
    background: rgba(52, 152, 219, 0.9);
    max-width: 400px;
}
